package com.olt.dao.user;

import com.olt.domain.user.OltCustom;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.transaction.annotation.Transactional;

import java.util.UUID;

public interface  ICustomDao extends JpaRepository<OltCustom, String> {
    OltCustom findByUserId(Long userId);

    @Modifying
    @Transactional
    void deleteByUserId(Long userId);


    OltCustom findByCustomId(String uuid);



}
